﻿local QI = DailyIntake.QuestItems;
local Localize = DailyIntake.Localize;

-- Add item: Skyguard Blasting Charges; http://www.wowhead.com/?item=32406
local function SkyguardBlastingCharges()
    return not UnitOnTaxi("player")
        and GetZoneText() == Localize("Terokkar Forest")
        and (GetSubZoneText() == Localize("Skettis") or
             GetSubZoneText() == Localize("Lower Veil Shil'ak") or
             GetSubZoneText() == Localize("Upper Veil Shil'ak") or
             GetSubZoneText() == Localize("Blackwind Lake") or
             GetSubZoneText() == Localize("Terokk's Rest") or
             GetSubZoneText() == Localize("Veil Ala'rak") or
             GetSubZoneText() == Localize("Veil Harr'ik")
            )
        
        -- must not have completed the quest yet (Fires Over Skettis - http://www.wowhead.com/?quest=11008)
        and not QI.QuestIsDone(11008);
end;
QI.RegisterQuestItem(32406, QI.Priority.Normal, SkyguardBlastingCharges)


-- Blade's Edge
-- Add item: Skyguard Bombs; http://www.wowhead.com/?item=32456
QI.RegisterQuestItem(32456, QI.Priority.Normal, function()
	return (not QI.QuestIsDone(11023) or not QI.QuestIsDone(11102) or not QI.QuestIsDone(11010))
		and GetZoneText() == "Blade's Edge Mountains"
		and (GetSubZoneText() == "Forge Camp: Wrath" or
		     GetSubZoneText() == "Forge Camp: Terror")
		and IsMounted();
end);

-- Add item: Wrangling Rope; http://www.wowhead.com/?item=32698
QI.RegisterQuestItem(32698, QI.Priority.High, function()
	return (not QI.QuestIsDone(11066) and not QI.QuestIsDone(11065))
		and GetZoneText() == "Blade's Edge Mountains";
end);
